Ext.Org= Ext.extend(Ext.Button,{
			render:function(container,pos){
				this.setText('组织');//设置按钮文字
				/*按钮处理函数*/
				this.addListener('click',function(){
						//处理运行时参数
					var t = this.initialConfig.e;
					//运行时参数
					var sm = new Ext.grid.RowSelectionModel({singleSelect:true});
					var store =  new Ext.data.JsonStore({
						    id:'name',
					        data: [{name:'userId',remark:'当前用户'},{name:'sysDate',remark:'当前时间'},{name:'sysDate2',remark:'当前时间2'}],
					        fields: ['name','remark']
					    });
					var pager = new Ext.PagingToolbar({pageSize:2,store:store,displayInfo:true});
					var grid = new Ext.grid.GridPanel({
					    store:store,
					    bbar:pager,
					    columns: [
					        {header: "运行时参数", width: 120, sortable: true, dataIndex: 'name'},
					        {header: "说明", width: 120, sortable: true, dataIndex: 'remark'}
					    ],
					    viewConfig: {
					        forceFit: true
					    },
					    sm: sm,
					    width:600,
					    height:300,
					    frame:true,
					    title:''
					});
					
					var win = new Ext.Window({
							title:'运行时参数',
							width:600,
							height:360,
							closable:false,
							modal:true,
							items:[grid],
							buttons:[{text:'确定',handler:function(){
								 var rec = sm.getSelected();
								 if (!rec){
									 
									 alert("必须选择一个");
									 return;
								 }
									var val = rec.get('name');
									t.setValue("${"+val+"}");
									win.close();
								}},{
									text:'取消',handler:function(){
									win.close();
									
									}
								}]
					   });
					  win.show();
					 
					});
				Ext.Org.superclass.render.apply(this, arguments);
			}});